package com.card_server.service;

import com.card_server.mapper.UserMapper;
import com.card_server.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserMapper mapper;

    public List<User> getUsers() {
        List<User> users = mapper.getAll();
        return users;
    }

}
